package com.codeduck.account.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.codeduck.account.domain.AccountDO;

import java.math.BigDecimal;

/**
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2022-08-19
 */
public interface IAccountService extends IService<AccountDO>  {
    /**
     * 扣用户钱
     * @return
     */
    AccountDO decreaseAccount(String userId, BigDecimal money);
}
